package com.earthquake.monitor_system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.earthquake.monitor_system.domain.IconDomain;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface IconDao{
    @Insert("INSERT INTO icon(name, pid) VALUES (#{name},#{pid});")
    public void inset(String name,Integer pid);
    @Select("select * from icon where pid=#{id}")
    public List<IconDomain> getByIdAll(Integer id);
}
